-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #32214 - Register query field with a resolver #8794
Conversation
xprazak2
commented
Sep 24, 2021
•
edited
Loading
edited
Issues: #32214 |
Continues where #8415 stopped, seems like I cannot reopen when I force-pushed. |
Do we have a use-case for it yet? :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one nit, from what I managed to understand
[test katello] |
Foreman::Plugin.register :foreman_plugin do register_graphql_query_field :foo, '::Types::Foo', :field, { :resolver => ::Resolvers::Foos::Foo } # register with lambda instead of a string if type does not resolve to a contant register_graphql_query_field :bars, -> () { [::Types::Bar] }, :field, { :resolver => ::Resolvers::Bars } end
Seems like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @xprazak2 ! 👍